/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.cid.jsfproducts.supportbeans;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ApplicationScoped;

/**
 *
 * @author Mikey
 */
@ManagedBean
@ApplicationScoped
public class DateTimeSupportBean {

    /** Creates a new instance of DateTimeSupportBean */
    public DateTimeSupportBean() {
    }
    
    public String getCurrentDateTime() {
        Calendar currentDate = Calendar.getInstance();
        SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return formatter.format(currentDate.getTime());
    }
}
